
//***********************************************
//
//      Filename: 4_1.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-03-27 23:39:22
// Last Modified: 2018-03-27 23:39:22
//***********************************************
public class RollingDice
{
public static void main(String[]args)
{
	Die die1, die2;
	int sum;
	
	die1 = new Die();
	die2 = new Die();
	
	die1.roll();
	die2.roll();
	System.out.println("Die One: " + die1 + ", Die Two: " + die2);
	
	die1.roll();
	die2.setFaceValue(4);
	System.out.println("Die One: " + die1 + ", Die Two: " + die2);

	sum = die1.getFaceValue() + die2.getFaceValue();
	System.out.println("Sum: " + sum);

	sum = die1.roll() + die2.roll();
	System.out.println("Die One: " + die1 + ", Die Two: " + die2);
	System.out.println("New sum: " + sum);
}
}
